[hvm] Export gpfn of store page to guest - not mfn.
authorChristian Limpach <Christian.Limpach@xensource.com>
Tue, 22 Aug 2006 14:13:07 +0000 (15:13 +0100)
committerChristian Limpach <Christian.Limpach@xensource.com>
Tue, 22 Aug 2006 14:13:07 +0000 (15:13 +0100)
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
tools/libxc/xc_hvm_build.c

index acb954865c98fba8d2feb32712b9d5e46f32c8ab..0f9d7974b0fb6ec751b7cc7e2f74607d438162cd 100644 (file)
@@ -348,7 +348,7 @@ static int setup_guest(int xc_handle,
 
     *store_mfn = page_array[shared_page_nr - 1];
 
-    xc_set_hvm_param(xc_handle, dom, HVM_PARAM_STORE_PFN, *store_mfn);
+    xc_set_hvm_param(xc_handle, dom, HVM_PARAM_STORE_PFN, shared_page_nr - 1);
     xc_set_hvm_param(xc_handle, dom, HVM_PARAM_STORE_EVTCHN, store_evtchn);
 
     /* Paranoia */